package com.cube.springmvcdemo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yaochenglong
 * @version V1.0
 * @date 2020/9/16 14:46
 * @DESC
 */
@RestController
public class UserController {


    @GetMapping("/hello")
    public String sayHello() {
        return "hello";
    }

    @PostMapping("/bye")
    public String sayBye(){
        return "bye";
    }
}
